داستان آبیدیک

مکمل دو گرفتن از یک عدد


english

1 Poultry Terminology:: taking the two’s complement of a number

Two’s complement is an encoding scheme that addresses the double 0 issue in signed magnitude and one’s complement representations. In this approach, the negative number is obtained by subtracting its positive equivalent from 2n. This is identical to performing a complement on the positive equivalent and then adding one. If a carry is generated, it is discarded. This procedure is called taking the two’s complement of a number. The procedure of complementing each bit and adding one is the most common technique to perform a two’s complement. In this way, the most significant bit of the number is still the sign bit (0 = positive, 1 = negative), but all of the negative numbers are in essence shifted up so that the double 0 gap is eliminated. Taking the two’s complement of a positive number will give its negative counterpart and vice versa. Let’s look at the decimal values that a 4-bit, two’s complement number can take on.

واژگان شبکه مترجمین ایران


معنی‌های پیشنهادی کاربران

نام و نام خانوادگی
شماره تلفن همراه
متن معنی یا پیشنهاد شما
Captcha Code